package de.hska.kundenverwaltung.db;

import javax.ejb.ApplicationException;

import de.hska.kundenverwaltung.KundenverwaltungException;
import de.hska.util.MessagesUtil;

@ApplicationException(rollback=true)
public class KundeDeletedException extends KundenverwaltungException {
	private static final long serialVersionUID = 6835869426211385810L;
	private Long id;
	
	public KundeDeletedException(Long id) {
		super(MessagesUtil.getMessage("error.kundenverwaltung.kundeDeleted", id));
		this.id = id;
	}

	public Long getId() {
		return id;
	}
}
